﻿using System;
using Enyim.Caching;
using Ayatta.Contract;
using System.Web.Mvc;
using Web.Base.Security;
using Web.Game.Models;
using Web.Base.Controllers;
using Web.Base.GameProxys;
using Web.Base.Models.Game;
using System.Collections.Generic;
using Ayatta.Contract.Component;

namespace Web.Game.Controllers
{
    public class RechargeController : GameBaseController
    {
        public RechargeController(ILogService logService, IBaseService baseService, IExtraService extraService, IStoreService storeService, IOrderService orderService, IGameService gameService, IAuctionService auctionService, IPassportService passportService, IPaymentService paymentService, IMemcachedClient memcachedClient)
            : base(logService, baseService, extraService, storeService, orderService, gameService, auctionService, passportService, paymentService, memcachedClient)
        {
        }

        public ActionResult Index(int? param)
        {
            var model = new RechargeControllerModel.Index();
            var games = GetGames();
            model.Games = games;
            return View(model);
        }

        [HttpPost]
        public ActionResult Index(int serverId = 0, int packageId = 0, int amount = 0)
        {
            var identity = User.Identity.Identity();
            var result = new SkResult<string>();
            return Json(result);
        }
    }
}
